package com.topscomm.base.job;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Component;

import com.topscomm.base.service.IBaseRemindTaskService;
import com.xxl.job.core.biz.model.ReturnT;
import com.xxl.job.core.handler.IJobHandler;
import com.xxl.job.core.handler.annotation.JobHandler;

/**
 * @description: 将RemindConfig表修改过的记录更新到RemidTask表
 * @author: maxiaodong
 * @date: 2020年11月10日下午7:13:26
 * @modify:
 */
@JobHandler(value = "remindConfigToRemindTaskModifiedJob")
@Component
public class RemindConfigToRemindTaskModifiedJob extends IJobHandler {
	@Autowired
	IBaseRemindTaskService baseRemindTaskService;

	@Override
	public ReturnT<String> execute(String arg0) throws Exception {
		baseRemindTaskService.configToTaskWhereModified();
		return ReturnT.SUCCESS;
	}
}
